package org.xiong.disk.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xiong.disk.bean.UploadRecord;
import org.xiong.disk.mapper.UploadRecordMapper;
import org.xiong.disk.service.UploadRecordService;

import java.util.List;

@Service
public class UploadRecordServiceImpl implements UploadRecordService {

    @Autowired
    UploadRecordMapper uploadRecordMapper;

    @Override
    public int insertByUploadRecord(UploadRecord uploadRecord) {
        return uploadRecordMapper.inserRecord(uploadRecord);
    }

    @Override
    public List<UploadRecord> getUploadRecord(String userPhone) {
        return uploadRecordMapper.getUploadRecordByPhone(userPhone);
    }
}
